home *** CD-ROM | disk | FTP | other *** search
- package skins
- {
- import flash.display.GradientType;
- import mx.skins.Border;
- import mx.styles.StyleManager;
-
- public class SimpleScrollTrackSkin extends Border
- {
- public function SimpleScrollTrackSkin()
- {
- super();
- }
-
- override public function get measuredWidth() : Number
- {
- return 16;
- }
-
- override public function get measuredHeight() : Number
- {
- return 1;
- }
-
- override protected function updateDisplayList(param1:Number, param2:Number) : void
- {
- super.updateDisplayList(param1,param2);
- var _loc3_:Array = getStyle("trackColors");
- StyleManager.getColorNames(_loc3_);
- var _loc4_:uint = getStyle("borderColor");
- graphics.clear();
- drawRoundRect(0,0,param1,param2,0,_loc4_,1,verticalGradientMatrix(0,0,param1,param2),GradientType.LINEAR,null,{
- "x":1,
- "y":1,
- "w":param1 - 2,
- "h":param2 - 2,
- "r":0
- });
- drawRoundRect(1,0,param1 - 1,param2,0,_loc3_,1,horizontalGradientMatrix(1,1,param1 / 3 * 2,param2 - 2));
- }
- }
- }
-
-